package com.cjq.auth.exception;

import lombok.Data;

/**
 * 异常信息
 */
@Data
public class ServiceException extends RuntimeException{
    /**
     * 状态码
     */
    private Integer code;
    /**
     * 错误信息
     */
    private String message;

    public ServiceException(String message) {
        this.message = message;
    }

    public ServiceException(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
